package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwj
 * @since 2023-12-26
 */
@Data
@TableName("incomingstock")
@ApiModel(value="Incomingstock对象", description="")
public class Incomingstock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "入库的订单ID ")
    @TableId(value = "recordID", type = IdType.AUTO)
    private Integer recordID;

    @ApiModelProperty(value = "入库的订单编号")
    private String incomingNumber;

    @ApiModelProperty(value = "入库的物资的名称")
    private String incomingName;

    @ApiModelProperty(value = "入库的商品的类型")
    private String incomingType;

    @ApiModelProperty(value = "入库的数量")
    private Integer incomingQuantity;

    @ApiModelProperty(value = "入库的订单创建时间")
    private LocalDateTime incomingDate;

    @ApiModelProperty(value = "入库订单的修改时间")
    @TableField(value = "update_time" ,fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "外键：关联供应商ID")
    @TableField("incoming_supplierID")
    private Integer incomingSupplierID;

    @ApiModelProperty(value = "外键：关联货架表ID，指定向哪个货架添加")
    @TableField("shelfID")
    private Integer shelfID;

    @ApiModelProperty(value = "入库的订单状态")
    private Integer station;

    //提交的货架名
    @ApiModelProperty(value = "货架名")
    @TableField(exist = false)
    private String shelfName;

    //提交的仓库名
    @ApiModelProperty(value = "仓库名")
    @TableField(exist = false)
    private String warehouseName;

    //提交的供应商名
    @ApiModelProperty(value = "供应商名")
    @TableField(exist = false)
    private String supplierName;
}
